package com.ruoyi.msg.domain.bo;

import com.ruoyi.common.core.domain.BaseEntity;
import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotNull;

/**
 * 问卷选项业务对象 msg_dcwj_wj_tk
 *
 * @author ruoyi
 * @date 2023-02-02
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class MsgDcwjWjTkBo extends BaseEntity {

    /**
     * 主键
     */
    @NotNull(message = "主键不能为空", groups = {EditGroup.class})
    private Long id;

    /**
     * 问卷id
     */
    @NotNull(message = "问卷id不能为空", groups = {AddGroup.class, EditGroup.class})
    private Long wjId;

    /**
     * 题库id
     */
    @NotNull(message = "题库id不能为空", groups = {AddGroup.class, EditGroup.class})
    private Long tkId;

    /**
     * 排序
     */
    @NotNull(message = "排序不能为空", groups = {AddGroup.class, EditGroup.class})
    private Integer sort;


}
